package cn.edu.neusoft.myappos.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import cn.edu.neusoft.myappos.R;

public class TeacherMainActivity extends AppCompatActivity {

        private Button bt_comm,         //评论
                    bt_break,
                bt_course;             //课程

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.teacher_main_activity);
            init();
        }

        private void init() {
            //评论
            bt_comm = findViewById(R.id.button9);
            //课程
            bt_course = findViewById(R.id.button10);
            //注销登录
            bt_break = findViewById(R.id.button12);
            bt_comm.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(cn.edu.neusoft.myappos.Activity.TeacherMainActivity.this,Main2CourseActivity.class);
                    startActivity(intent);
                }
            });

            bt_course.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(cn.edu.neusoft.myappos.Activity.TeacherMainActivity.this, TeacherZoneActivity.class);
                    startActivity(intent);
                }
            });

            bt_break.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    Intent intent = new Intent(cn.edu.neusoft.myappos.Activity.TeacherMainActivity.this, FristActivity.class);
                    startActivity(intent);
                }
            });
        }



    }
